/*************************************************************************
 *                                                                       *
 * This file is part of the DogosFrame distribution.  For full copyright *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 *                                                                       *
 *************************************************************************/

namespace DOGOS
{

inline void
ParallelBuffer::set_prefix_string(
    const std::string& text)
{
    d_prefix = text;
}


inline void
ParallelBuffer::set_output_stream1(
    std::ostream* stream)
{
    d_ostream1 = stream;
}


inline void
ParallelBuffer::set_output_stream2(
    std::ostream* stream)
{
    d_ostream2 = stream;
}


inline void
ParallelBuffer::output_string(
    const std::string& text)
{
    output_string(text, static_cast<int>(text.length()));
}


#ifdef _MSC_VER
inline int
ParallelBuffer::underflow()
{
    return EOF;
}
#endif

}
